********************************************************************
* Date: 				17 August 2020
* Authors: 				N. Karouzakis & K. Tzioumis
* Paper title: 			Spillover costs of national security policies
* Program's purpose: 	To produce Table 1 - Difference-in-Differences regression results

	set more off

	
********************************************************************
* Upload dataset
	use "C:\Table_1_Data.dta", clear


********************************************************************
*  Table 1: Diff-in-Diff, OLS estimation with bootstrapped standard errors
	bootstrap, seed(1234567) reps(5000) nodots: reg  ln_q_arrivals muslim ban interaction i.quarter if region=="Middle East" | region=="Africa"
	outreg2 using "C:\Table_1", excel tdec(3) bdec(3) addstat(Adjusted R2, `e(r2_a)') ctitle("Control: Africa") 
	
	bootstrap, seed(1234567) reps(5000) nodots: reg  ln_q_arrivals muslim ban interaction i.quarter if region=="Middle East" | region=="Asia"
	outreg2 using "C:\Table_1", excel tdec(3) bdec(3) addstat(Adjusted R2, `e(r2_a)') ctitle("Control: Asia") 		append
	
	bootstrap, seed(1234567) reps(5000) nodots: reg  ln_q_arrivals muslim ban interaction i.quarter if region=="Middle East" | region=="Caribbean"
	outreg2 using "C:\Table_1", excel tdec(3) bdec(3) addstat(Adjusted R2, `e(r2_a)') ctitle("Control: Caribbean") append
	
	bootstrap, seed(1234567) reps(5000) nodots: reg  ln_q_arrivals muslim ban interaction i.quarter if region=="Middle East" | region=="Central America"
	outreg2 using "C:\Table_1", excel tdec(3) bdec(3) addstat(Adjusted R2, `e(r2_a)') ctitle("Control: C.America") append
	
	bootstrap, seed(1234567) reps(5000) nodots: reg  ln_q_arrivals muslim ban interaction i.quarter if region=="Middle East" | region=="Eastern Europe"
	outreg2 using "C:\Table_1", excel tdec(3) bdec(3) addstat(Adjusted R2, `e(r2_a)') ctitle("Control: E.Europe")  append
